//
// Created by huangsanming on 2021/10/29.
//

#include <jni.h>
#include "aes.h"


#ifdef __cplusplus
extern "C" {
#endif

uint8_t pKey[16]   = {0x72, 0x55, 0xE4, 0xD2, 0x00, 0x1A, 0x9D, 0x6D, 
                          0xE9, 0x78, 0x8F, 0x60, 0x09, 0x20, 0x6F, 0x29 };

JNIEXPORT jstring JNICALL Java_com_example_jnidemo_AESCBCencryptbuffer(
        JNIEnv *env,
        jclass obj,
        jstring uid,
        jbyteArray buff,
        jint bufLet);

JNIEXPORT jstring JNICALL Java_com_example_jnidemo_AESCBCdecryptbuffer(
        JNIEnv *env,
        jclass obj,
        jstring uid,
        jbyteArray buff,
        jint bufLe
        );


#ifdef __cplusplus
}
#endif
